package com.corpgovernment.organization.vo;

import lombok.Data;

@Data
public class BindCtripAccountRspVo {

    private String errorCode;

    private String errorMessage;

    private String supplierErrorMessage;

    public static BindCtripAccountRspVo failed(String errorCode, String errorMessage){
        BindCtripAccountRspVo bindCtripAccountRspVo = new BindCtripAccountRspVo();
        bindCtripAccountRspVo.setErrorCode(errorCode);
        bindCtripAccountRspVo.setErrorMessage(errorMessage);
        return bindCtripAccountRspVo;
    }

    public static BindCtripAccountRspVo failed(){
        BindCtripAccountRspVo bindCtripAccountRspVo = new BindCtripAccountRspVo();
        bindCtripAccountRspVo.setErrorCode("500");
        bindCtripAccountRspVo.setErrorMessage("绑定账号失败，请稍后重试");
        return bindCtripAccountRspVo;
    }

    public static BindCtripAccountRspVo success(String errorCode, String errorMessage){
        BindCtripAccountRspVo bindCtripAccountRspVo = new BindCtripAccountRspVo();
        bindCtripAccountRspVo.setErrorCode(errorCode);
        bindCtripAccountRspVo.setErrorMessage(errorMessage);
        return bindCtripAccountRspVo;
    }

    public static BindCtripAccountRspVo success(String errorCode, String errorMessage, String supplierErrorMessage){
        BindCtripAccountRspVo bindCtripAccountRspVo = new BindCtripAccountRspVo();
        bindCtripAccountRspVo.setErrorCode(errorCode);
        bindCtripAccountRspVo.setErrorMessage(errorMessage);
        bindCtripAccountRspVo.setSupplierErrorMessage(supplierErrorMessage);
        return bindCtripAccountRspVo;
    }
}
